var t = getApp();

Page({
    data: {
        key: ""
    },
    onLoad: function(t) {
        this.getData();
    },
    back: function() {
        wx.navigateBack({
            delta: 1
        });
    },
    keyvalue: function(t) {
        var a = t.detail.value;
        this.setData({
            key: a
        }), this.getData();
    },
    toDetails: function(t) {
        var a = t.currentTarget.dataset.id;
        wx.navigateTo({
            url: "/packageE/groupCode/groupCodeLabel/groupCodeLabel?id=" + a
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getData: function() {
        var a = this, e = t.getNetAddresss("plugin.group-code.api.group-code.search-list");
        e += "&search[code_name]=" + this.data.key, t._postNetWork({
            url: e,
            success: function(t) {
                var e = t.data;
                1 == e.result ? (console.log(e), a.setData({
                    list: e.data.list.data
                })) : console.log(e.msg);
            }
        });
    }
});